class Student:
    def __init__(self, name, age, gender, python):
        self.name = name
        self.age = age
        self.gender = gender
        self.python = python

    # 实例方法
    def info(self):
        print(self.name, self.age, self.gender, self.python)


if __name__ == '__main__':
    print('请输入5位学生信息 (姓名#年龄#性别#成绩):')
    lst = []  # 存储
    for i in range(1, 6):
        s = input(f'请输入第{i}位学生的信息及成绩:')
        s_lst = s.split('#')
        stu = Student(s_lst[0], s_lst[1], s_lst[2], s_lst[3])
        lst.append(stu)

    for item in lst:
        item.info()
